package se.webbzon.boltzmann.minigame.sandbox;

public class SandBoxScore {
	
	// The current amount of points
	private long points;
	
	/*============================================================
	Constructors
	============================================================*/
	
	public SandBoxScore() {
		this(0);
	}
	
	public SandBoxScore(long points) {
		setPoints(points);
	}
	
	/*============================================================
	Public Methods
	============================================================*/
	
	/** Returns the current amount of points from this score. **/
	public long getPoints() {
		return points;
	}
	
	/** Sets the current amount of points for this score. **/
	public void setPoints(long points) {
		this.points = points < 0 ? 0 : points;
	}
	
	/** Adds an amount of points to this score. **/
	public void addPoints(long points) {
		setPoints(getPoints() + points);
	}

}
